
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>AI 图像生成器</title>
    <link rel="stylesheet" href="style.css">
</head>
<body>
    <div class="container">
        <header>
            <h1>AI 图像生成器</h1>
            <p>借助 AI 的力量，创造精美的图像</p>
        </header>
        <main>
            <form id="image-form">
                <div class="form-group">
                    <label for="prompt">你的提示词</label>
                    <textarea id="prompt" name="prompt" rows="3" placeholder="例如：一只戴着礼帽、非常可爱的猫咪的真实感照片"></textarea>
                </div>
                <div class="form-group">
                    <label for="image">参考图 (可选)</label>
                    <input type="file" id="image" name="image" accept="image/*">
                </div>
                <button type="submit" class="generate-btn">生成</button>
            </form>
            <div id="result-container" class="hidden">
                <h2>生成结果</h2>
                <div class="image-wrapper">
                    <img id="result-image" src="" alt="生成的图像">
                </div>
            </div>
        </main>
        <footer>
            <p>由豆包大模型驱动</p>
        </footer>
    </div>
    <script src="script.js"></script>
</body>
</html>
